var request = require('request');
var func = require('{pub}/function');

return function(){
    request.del('user/logout', function(){
        func.location('login')
    }, '正在退出...')
}